import request from '@/axios'
import type { UserType } from './types'
interface UserTypeR extends UserType {
  token: string
  id: string
}
export const loginApi = (data: UserType): Promise<IResponse<UserTypeR>> => {
  return request.post({ url: '/mock/user/login', data })
}
